Optimal. Leaf size=43 \[ \frac{2 \sec (e+f x) \sqrt{a \sin (e+f x)+a} \sqrt{g \sin (e+f x)}}{c f g} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.202931, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.075, Rules used = {2930, 12, 30} \[ \frac{2 \sec (e+f x) \sqrt{a \sin (e+f x)+a} \sqrt{g \sin (e+f x)}}{c f g} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2930
Rule 12
Rule 30
Rubi steps
\begin{align*} \int \frac{\sqrt{a+a \sin (e+f x)}}{\sqrt{g \sin (e+f x)} (c-c \sin (e+f x))} \, dx &=-\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{c g x^2} \, dx,x,\frac{a \cos (e+f x)}{\sqrt{g \sin (e+f x)} \sqrt{a+a \sin (e+f x)}}\right )}{f}\\ &=-\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{x^2} \, dx,x,\frac{a \cos (e+f x)}{\sqrt{g \sin (e+f x)} \sqrt{a+a \sin (e+f x)}}\right )}{c f g}\\ &=\frac{2 \sec (e+f x) \sqrt{g \sin (e+f x)} \sqrt{a+a \sin (e+f x)}}{c f g}\\ \end{align*}
Mathematica [A] time = 0.220407, size = 40, normalized size = 0.93 \[ \frac{2 \tan (e+f x) \sqrt{a (\sin (e+f x)+1)}}{c f \sqrt{g \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.301, size = 45, normalized size = 1.1 \begin{align*} 2\,{\frac{\sqrt{a \left ( 1+\sin \left ( fx+e \right ) \right ) }\sin \left ( fx+e \right ) }{cf\sqrt{g\sin \left ( fx+e \right ) }\cos \left ( fx+e \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.57354, size = 417, normalized size = 9.7 \begin{align*} -\frac{\frac{4 \,{\left ({\left (\frac{3 \, \sqrt{2} \sqrt{a} \sqrt{g} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac{\sqrt{2} \sqrt{a} \sqrt{g} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )} \sqrt{\frac{\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}} - \frac{2 \,{\left (\frac{3 \, \sqrt{2} \sqrt{a} \sqrt{g} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac{\sqrt{2} \sqrt{a} \sqrt{g} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )}}{\sqrt{\frac{\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}}\right )}}{c g - \frac{c g \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}} - \frac{2 \, \sqrt{2} \sqrt{a} \left (\frac{\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )^{\frac{3}{2}} + \frac{3 \, \sqrt{2} \sqrt{a} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}{c \sqrt{g}} - \frac{2 \, \sqrt{2} \sqrt{a} \left (\frac{\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )^{\frac{3}{2}} - \frac{3 \, \sqrt{2} \sqrt{a} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}{c \sqrt{g}}}{12 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.99971, size = 95, normalized size = 2.21 \begin{align*} \frac{2 \, \sqrt{a \sin \left (f x + e\right ) + a} \sqrt{g \sin \left (f x + e\right )}}{c f g \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \frac{\int \frac{\sqrt{a \sin{\left (e + f x \right )} + a}}{\sqrt{g \sin{\left (e + f x \right )}} \sin{\left (e + f x \right )} - \sqrt{g \sin{\left (e + f x \right )}}}\, dx}{c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{\sqrt{a \sin \left (f x + e\right ) + a}}{{\left (c \sin \left (f x + e\right ) - c\right )} \sqrt{g \sin \left (f x + e\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]